﻿using System;
using System.Collections.Generic;
using Pay.DTO;
using Pay.TO;

namespace Pay.IService {
    public interface IShippingAddressService {
       
        List<shippingaddress_dto> GetByUser(long user_id);
        int Delete(long Id);
        int AddAddress(shippingaddress_dto dto);
        shippingaddress_dto GetById(long id);
        shippingaddress_dto GetGegionIdByUserId(string UserId, string AddressId);
        int Update(shippingaddress_dto dto);


        int UpdateDefault(long id, long merchant_id);
        int Add(shipping_address_dto dto);
        void Insert(shipping_address_dto dto);
        int Update(shipping_address_dto dto);
        shipping_address_dto Get(long id);
        shipping_address_dto GetByAddressId(long id);
        IEnumerable<shipping_address_dto> GetAddressByUser(long user_id);
        shipping_address_dto GetByDefault(long user_id);
        shippingaddress_dto GetDefaultAddress(long merchant_id);
        int DeleteAdress(long id);
    }
}
